package chapter2.No2_2_synchronized同步语句块.l多线程的死锁.demo1;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/14 0014
 */
public class Father {

    public synchronized void say(Bandit bandit) {
        System.out.println("父亲说，先放人，在给钱");
        bandit.get();
    }

    public synchronized void get() {
        System.out.println("父亲得到了儿子，失去了赎金");
    }


}
